
public class AffineGapPenalty implements GapPenalty {
	int g;
	int h;

	public AffineGapPenalty(int h, int g) {
		this.g = g;
		this.h = h;
	}

	public int gapPenalty(int x, int y) {
		return g;
	}

	public int headPenalty(int x, int y) {
		return h;
	}

}
